#pragma once

#include <wx/wx.h>
#include <wx/dcbuffer.h>
#include "Scene.h"

class DrawingPanel : wxPanel
{
public:
	DrawingPanel(wxFrame *parent);
	void Idle();
	~DrawingPanel(void);

private:
	void PaintEvent(wxPaintEvent &evt);
	void OnMotion(wxMouseEvent &evt);
	void PaintBackground(wxDC& dc);
	void Render(wxDC &dc);

private:
	Scene *_scene;
	wxBufferedDC _buffer;

	DECLARE_EVENT_TABLE();
};

